//#ifndef STD_H
//#define STD_H
//#include <avr/io.h>
//#include <inttypes.h>
//#endif

#ifndef USART2_H
#define USART2_H

#ifndef F_CPU
#define F_CPU 32000000
#endif



void usart_init_2(PORT_t *port, USART_t *usart, uint32_t baudrate);
void usart_rx_buf_flush_2(void);
uint8_t usart_rx_buf_has_data_2(void);
void usart_rx_buf_put_byte_2(uint8_t data);
uint8_t usart_rx_buf_get_byte_2(void);

void usart_send_byte_2(uint8_t byte);
void usart_send_string_2(char *byte);
int uart_putchar_2(char c, FILE *stream);
void usart_send_double_2(double data);

#endif
